import request from '@/utils/request'

// 查询禁烟地图坐标列表
export function listOpiummapcoordinate(query) {
  return request({
    url: '/opiummapcoordinate/opiummapcoordinate/list',
    method: 'get',
    params: query
  })
}

// 查询禁烟地图坐标详细
export function getOpiummapcoordinate(id) {
  return request({
    url: '/opiummapcoordinate/opiummapcoordinate/' + id,
    method: 'get'
  })
}

// 新增禁烟地图坐标
export function addOpiummapcoordinate(data) {
  return request({
    url: '/opiummapcoordinate/opiummapcoordinate',
    method: 'post',
    data: data
  })
}

// 修改禁烟地图坐标
export function updateOpiummapcoordinate(data) {
  return request({
    url: '/opiummapcoordinate/opiummapcoordinate',
    method: 'put',
    data: data
  })
}

// 删除禁烟地图坐标
export function delOpiummapcoordinate(id) {
  return request({
    url: '/opiummapcoordinate/opiummapcoordinate/' + id,
    method: 'delete'
  })
}

// 导出禁烟地图坐标
export function exportOpiummapcoordinate(query) {
  return request({
    url: '/opiummapcoordinate/opiummapcoordinate/export',
    method: 'get',
    params: query
  })
}